<template>
<div class="comment_data">
  <div v-for="(item,index) in message" :key="index" class="comment">
    <div class="user_inf">
      <img src="../assets/img/unlogin.png" alt="">
      <h1>11111</h1>
    </div>
    <div class="style">
      <div>
      <van-tag type="warning">{{ item.style === 1 ? "老房" : "新房" }}</van-tag>
      <van-tag type="warning">{{ item.area }}㎡</van-tag>
      <van-tag type="warning">{{ item.value }}</van-tag>
      </div>
      <van-rate void-color="#FFFFFFFF" v-model="item.score" readonly />
    </div>
    <div class="content">
      <div>{{item.content}}</div>
    </div>
  </div>
</div>
</template>

<script>
import {get} from "../assets/js/config/api";

export default {
  name: "Comment_data",
  data(){
    return{
      id:this.$route.params.id,
      message:[],
      params:{},

    }
  },
  mounted() {
    this.params.orderId=this.id
    get('/comment',this.params).then(
        result=>{console.log(result)
          this.message=result.result
        }
    )
  }

}
</script>

<style scoped lang="scss">
@import "public/sass/comment_data";
</style>
